﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_faultAlarm", DisableSyncStructure = true)]
	public partial class TFaultAlarm {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty, Column(Name = "alarmState")]
		public int? AlarmState { get; set; }

		[JsonProperty, Column(Name = "alarmStrength")]
		public int? AlarmStrength { get; set; }

		[JsonProperty, Column(Name = "cableTemp", DbType = "decimal(18,2)")]
		public decimal? CableTemp { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		[JsonProperty, Column(Name = "electric", DbType = "decimal(18,2)")]
		public decimal? Electric { get; set; }

		[JsonProperty, Column(Name = "environmentTemp", DbType = "decimal(18,2)")]
		public decimal? EnvironmentTemp { get; set; }

		[JsonProperty]
		public int? GPRS { get; set; }

		[JsonProperty, Column(Name = "onePeriod")]
		public int? OnePeriod { get; set; }

		[JsonProperty, Column(Name = "phaseDifference")]
		public int? PhaseDifference { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string Status { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

		[JsonProperty, Column(Name = "twoPeriod")]
		public int? TwoPeriod { get; set; }

		[JsonProperty, Column(Name = "xVibration", DbType = "decimal(18,2)")]
		public decimal? XVibration { get; set; }

		[JsonProperty, Column(Name = "yVibration", DbType = "decimal(18,2)")]
		public decimal? YVibration { get; set; }

		[JsonProperty, Column(Name = "zVibration", DbType = "decimal(18,2)")]
		public decimal? ZVibration { get; set; }

	}

}
